package com.ruibang.glass.quality.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruibang.glass.quality.domain.req.QualityContactReq;
import com.ruibang.glass.quality.entity.QualityContact;
import com.teaming.cloud.framework2.common.pojo.PageRequest;
import com.teaming.cloud.framework2.common.pojo.PageResult;

import java.util.List;

/**
 * <p>
 * 品质联络单信息 服务类
 * </p>
 *
 * @author wujie
 * @since 2023-11-30
 */
public interface QualityContactService extends IService<QualityContact> {

    /***
     * 新增品质联络单
     * @param qualityContact
     */
    void saveInfo(QualityContact qualityContact);

    /***
     * 更新品质联络单
     * @param qualityContact
     */
    void updateInfo(QualityContact qualityContact);

    /***
     * 分页列表查询品质联络单
     * @param pageRequest
     * @return
     */
    PageResult<QualityContact> queryPage(PageRequest<QualityContactReq> pageRequest);

    /***
     * 非分页列表查询品质联络单
     * @param contactReq
     * @return
     */
    List<QualityContact> queryQualityContacts(QualityContactReq contactReq);

    /**
     * 查询品质联络单详情接口
     * @param contactId
     * @return
     */
    QualityContact getDetail(String contactId);
}
